﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Agresso.Interface.Layer.Domain
{
    public class DaDeskBank
    {
        public long dadeskbank_id = 0;
        public string da_type = "";
        public string biz_unit = "";
        public string account_code = "";
        public string bank_code = "";

        public DaDeskBank() { }
        public DaDeskBank(SqlDataReader rd)
        {
            dadeskbank_id = Convert.ToInt32(rd["dadeskbank_id"]);
            da_type = rd["da_type"] is DBNull ? da_type : rd["da_type"].ToString();
            biz_unit = rd["biz_unit"] is DBNull ? biz_unit : rd["biz_unit"].ToString();
            account_code = rd["account_code"] is DBNull ? account_code : rd["account_code"].ToString();
            bank_code = rd["bank_code"] is DBNull ? bank_code : rd["bank_code"].ToString();
        }
    }
}
